package com.smfx.yxt.utils;

import java.io.UnsupportedEncodingException;
import java.util.ResourceBundle;

/**
 * 项目参数工具类
 * 
 * 
 */
public class ConfigUtil {

	private static final ResourceBundle bundle = java.util.ResourceBundle.getBundle("config");

	/**
	 * 通过键获取值
	 * 
	 * @param key
	 * @return
	 */
	public static final String get(String key) {
		return bundle.getString(key);
	}
	
	
	public static final String getValue(String key) {
		String keyValue="";
		try {
			keyValue = new String(bundle.getString(key).getBytes("ISO-8859-1"), "UTF-8");
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}  
		return keyValue;
	}

}
